
<div class="content">
	<div class="order" style="background-color:#fff">
    	<div class="order_s">
			<div class="ordercircuit">
            	<h1>核对订单信息</h1>
            </div>
            <form method="post">
            <div class="verify" style="background-color:#fff">
            	<div class="ordername">
               		<h2>确认购买的商品清单</h2>
                    <span><a href="/purchase/cart">返回修改购物车</a></span>
                </div>
                <div class="order_tablehead">
                	<ul>
                    	<li class="o1">商品名称</li>
                    	<li class="o2">单价（元）</li>
                    	<li class="o3">数量</li>
                    	<li class="o4">运费（元）</li>
                    </ul>
                </div>
                
                <div class="order_tabel">
                    <?php 
                    foreach ($this->cart->getShops(true) as $shop){ ?>
                	<table>
                    	<tr>
                        	<td colspan="4">
                            	<div class="order_dp">
                                	<span><?php echo $shop->IsTaobao?'淘宝店铺:':'' ?><a href="<?php echo $shop->Url ?>"><?php echo $shop->Name ?></a></span>
                                </div>
                            </td>
                       	</tr>
                        <?php 
                        $isShopFrist = TRUE;
                        $shopItems =$this->cart->getItemsByShopId($shop->Id);
                        foreach ($shopItems as $item) {  ?>
                    	<tr>
                        	<td class="ot1">
                            	<div class="commoditypic">
                                	<a target="_blank" href="<?php echo $item->Product->Url ?>"><img src="<?php echo $item->Product->RemoteImage ?>" alt="<?php echo $item->ProductName?>" /></a>
                                </div>
                                <div class="commodityinfo">
                                    <h3><a target="_blank" href="<?php echo $item->Product->Url ?>"><?php echo $item->ProductName ?></a></h3>
                                    <ul>
                                    	<li><?= $item->Product->PropertyAlias ?></li>
                                    	<li>商品备注: <?php echo $item->Comment==NULL || $item->Comment == ''?'(无)':$item->Comment; ?></li>
                                    </ul>
                                </div>
                            </td>
                            <td class="ot2"><?php echo number_format($item->Price,2) ?></td>
                            <td class="ot3"><?php echo $item->Quantity; ?></td>
                            <?php if($isShopFrist){ ?>
                            <td rowspan="<?php echo count($shopItems); ?>" class="ot4"><?php echo $item->ShipFee ?></td>
                            <?php } ?>
                        </tr>
                        <?php 
                        $isShopFrist=FALSE;
                        }?>
                    </table>
                    <?php } ?>
                </div>
            </div>
            <div class="accounts_info">
            	<div class="ordername">
               		<h2>结算信息</h2>
                </div>
                <div class="accounts_num">
                	<div class="detailedNUM">
                        <span>商品金额：<?php echo number_format($this->cart->ProductTotal,2); ?>元</span>+<span>运费：<?php echo number_format($this->cart->ShipFeeTotal,2); ?>元</span>
                    </div>
                    <table>
                    	<tr>
                        	<td class="preferential">
                            	
                            </td>
                            <td class="total"><span>应付总额：</span><em>￥<?php echo number_format($this->cart->Total,2); ?></em><span>元</span></td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="Order_ok">
            	<input name="" type="submit" value="" onmouseover="this.className='Order_After'" onmouseout="this.className=''" />
            </div>
            </form>
        </div>
    </div> 
</div>
